tts_voice object

This method will stop the voice from speaking and reset the text buffer.

bool stop()

Parameters:
None.

Return value:
true on success, false on failure.

Remarks:
This method is here for greater ease of use. The exact same task can be accomplished by passing an empty string to any of the interrupt functions. This stops the speech and completely clears the text buffer, so any other text that is ready to be spoken is deleted.

Example:
// Speak some text and stop it midway through.

tts_voice speech;

void main()
{
speech.speak("I should be stopping round about now.");
wait(500);
speech.stop();
}